/**
 * create by young (young2f@outlook.com) on 2020/8/21
 */
'use strict';
import React, {PureComponent} from 'react';
import {connect} from 'dva/index';
import {Form} from 'antd';

@Form.create()
@connect(({device, global, treeNode}) => ({...device, ...global, ...treeNode}))
export default class Index extends PureComponent {
  componentDidMount() {
    const loginInfo = wStore.getStore('loginInfo');
    const {tenantCode} = loginInfo;
    this.props.dispatch({
      type: 'device/queryDevice',
      payload: {tenantCode},
    })
    this.props.dispatch({
      type: 'global/queryBaseData',
      payload: {owner: 'deviceStatus'},
    })
  }
}
